﻿#include "InstructionTurnTableOpenCircuit.h"

__SCRIPTINSTRUCTION_REGISTER(InstructionTurnTableOpenCircuit,ScriptInstruction::Instruction_TurnTable_OpenCircuit,&InstructionTurnTableOpenCircuit::fromByteArray1);

InstructionTurnTableOpenCircuit::InstructionTurnTableOpenCircuit()
{
  instructionFlag = Instruction_TurnTable_OpenCircuit;
}

InstructionTurnTableOpenCircuit::InstructionTurnTableOpenCircuit(InstructionTurnTableOpenCircuit const& instructionTurnTableOpenCircuit)
{
  *this=instructionTurnTableOpenCircuit;
}

InstructionTurnTableOpenCircuit& InstructionTurnTableOpenCircuit::operator=(InstructionTurnTableOpenCircuit const & instructionTurnTableOpenCircuit)
{
  *(ScriptInstruction*)this=instructionTurnTableOpenCircuit;
  return *this;
}

InstructionTurnTableOpenCircuit::~InstructionTurnTableOpenCircuit()
{}

QString InstructionTurnTableOpenCircuit::toString()
{
  return QStringLiteral("转台闲置");
}

QByteArray InstructionTurnTableOpenCircuit::toByteArray()
{
  return ScriptInstruction::toByteArray();
}

InstructionTurnTableOpenCircuit* InstructionTurnTableOpenCircuit::clone()
{
  return new InstructionTurnTableOpenCircuit(*this);
}

ScriptInstruction* InstructionTurnTableOpenCircuit::fromByteArray1(char * const src,int size,int * offset)
{
  (void)src;
  (void)size;
  (void)offset;
  return new InstructionTurnTableOpenCircuit();
}
